package org.cbyyx.tc.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品分类表
 * @TableName product_category
 */
@TableName(value ="product_category")
@Data
public class ProductCategory implements Serializable {
    /**
     * 分类ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分类名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 父分类ID
     */
    @TableField(value = "parentId")
    private Long parentId;

    /**
     * 分类层级
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 排序权重
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 分类图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 分类描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 状态(0-禁用,1-启用)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}